home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / usr / include / sys / tablet.h.z / tablet.h
C/C++ Source or Header  |  1992-04-03  |  1KB  |  56 lines

  1. #ifndef TABLET_H
  2. #define TABLET_H 1
  3.  
  4. #define    TABLET_NAME        "tablet"
  5. #define    TABLET_TYPE        "TABLET"
  6. #define    TABLET_NUM_BUTTONS    4
  7. #define    TABLET_ALL_BUTTONS    0x0f
  8.  
  9. #define    TABLET_NUM_VALUATORS    2
  10. #define    TABLET_VALUATOR_MIN    0
  11. #define    TABLET_VALUATOR_MAX    2206
  12. #define    TABLET_VALUATOR_RESOLUTION        200
  13. #define    TABLET_VALUATOR_MIN_RESOLUTION    200
  14. #define    TABLET_VALUATOR_MAX_RESOLUTION    200
  15. #define    TABLET_ALL_VALUATORS    0x3
  16.  
  17. #define    TABLET_BUTTON_FLAG    0x40
  18. #define    TABLET_NOT_SYNCHED    -1
  19. #define    TABLET_LOW_X        0
  20. #define    TABLET_HIGH_X        1
  21. #define    TABLET_LOW_Y        2
  22. #define    TABLET_HIGH_Y        3
  23. #define    TABLET_BUTTONS        4
  24.  
  25. #ifdef _KERNEL
  26. typedef struct tbt_state {
  27.     idevInfo        info;
  28.  
  29.     idevValuatorDesc    vdesc[TABLET_NUM_VALUATORS];
  30.     idevTransform        vtrans[TABLET_NUM_VALUATORS];
  31.  
  32.     unsigned char        vactive;
  33.     int            vstate[TABLET_NUM_VALUATORS];
  34.  
  35.     unsigned char        bactive;
  36.     unsigned char        bstate;
  37.  
  38.     int            state;
  39.     idevValuatorState    vals;
  40.  
  41.     unsigned char        pad0;
  42.     unsigned short        pad1;
  43.  
  44.  
  45.     /* Misc. Std. Driver stuff */
  46.     unsigned char initialized;/* true if data structures are set */
  47.                 /* and init sequence has been sent to */
  48.                 /* device */
  49.     unsigned char ready;    /* true if we've received confirmation */
  50.                 /* of the init sequence from the device */
  51. } tbt_state_t;
  52.  
  53. #endif /* _KERNEL */
  54.  
  55. #endif
  56.